using UnityEngine;

namespace Voodoo.Sauce.Common.Utils.Data.ScreenUtilsConfig
{
	public static class IosDeviceDpiMapping
	{
		public static float GetIosDpiFromIosMachineName(string iosMachineName)
		{
			switch (iosMachineName)
			{
			case "iPhone14,4":
			case "iPhone13,1":
				return 476f;
			case "iPhone15,4":
			case "iPhone15,5":
			case "iPhone16,1":
			case "iPhone16,2":
			case "iPhone14,7":
			case "iPhone15,2":
			case "iPhone15,3":
			case "iPhone14,5":
			case "iPhone14,2":
			case "iPhone13,2":
			case "iPhone13,3":
				return 460f;
			case "iPhone14,8":
			case "iPhone14,3":
			case "iPhone13,4":
			case "iPhone12,3":
			case "iPhone12,5":
			case "iPhone11,2":
			case "iPhone11,4":
			case "iPhone11,6":
			case "iPhone10,3":
			case "iPhone10,6":
				return 458f;
			case "iPhone10,2":
			case "iPhone10,5":
			case "iPhone9,2":
			case "iPhone9,4":
			case "iPhone8,2":
			case "iPhone7,1":
				return 401f;
			case "iPhone12,1":
			case "iPhone11,8":
			case "iPhone14,6":
			case "iPhone12,8":
			case "iPhone10,1":
			case "iPhone10,4":
			case "iPhone9,1":
			case "iPhone9,3":
			case "iPhone8,1":
			case "iPhone7,2":
			case "iPhone8,4":
			case "iPhone6,1":
			case "iPhone6,2":
			case "iPhone5,3":
			case "iPhone5,4":
			case "iPhone5,1":
			case "iPhone5,2":
			case "iPod9,1":
			case "iPod7,1":
			case "iPod5,1":
			case "iPhone4,1":
			case "iPad14,1":
			case "iPad14,2":
			case "iPad11,1":
			case "iPad11,2":
			case "iPad5,1":
			case "iPad5,2":
			case "iPad4,7":
			case "iPad4,8":
			case "iPad4,9":
			case "iPad4,4":
			case "iPad4,5":
			case "iPad4,6":
				return 326f;
			case "iPad13,18":
			case "iPad13,19":
			case "iPad14,3":
			case "iPad14,4":
			case "iPad14,3-A":
			case "iPad14,3-B":
			case "iPad14,4-A":
			case "iPad14,4-B":
			case "iPad14,5":
			case "iPad14,6":
			case "iPad14,5-A":
			case "iPad14,5-B":
			case "iPad14,6-A":
			case "iPad14,6-B":
			case "iPad13,16":
			case "iPad13,17":
			case "iPad12,1":
			case "iPad12,2":
			case "iPad13,8":
			case "iPad13,9":
			case "iPad13,10":
			case "iPad13,11":
			case "iPad13,4":
			case "iPad13,5":
			case "iPad13,6":
			case "iPad13,7":
			case "iPad13,1":
			case "iPad13,2":
			case "iPad11,6":
			case "iPad11,7":
			case "iPad8,11":
			case "iPad8,12":
			case "iPad8,9":
			case "iPad8,10":
			case "iPad7,11":
			case "iPad7,12":
			case "iPad11,3":
			case "iPad11,4":
			case "iPad8,5":
			case "iPad8,6":
			case "iPad8,7":
			case "iPad8,8":
			case "iPad8,1":
			case "iPad8,2":
			case "iPad8,3":
			case "iPad8,4":
			case "iPad7,5":
			case "iPad7,6":
			case "iPad7,3":
			case "iPad7,4":
			case "iPad7,1":
			case "iPad7,2":
			case "iPad6,11":
			case "iPad6,12":
			case "iPad6,7":
			case "iPad6,8":
			case "iPad6,3":
			case "iPad6,4":
			case "iPad5,3":
			case "iPad5,4":
			case "iPad4,1":
			case "iPad4,2":
			case "iPad4,3":
			case "iPad3,4":
			case "iPad3,5":
			case "iPad3,6":
			case "iPad3,1":
			case "iPad3,2":
			case "iPad3,3":
				return 264f;
			case "iPad2,5":
			case "iPad2,6":
			case "iPad2,7":
				return 163f;
			case "iPad2,1":
			case "iPad2,2":
			case "iPad2,3":
			case "iPad2,4":
				return 132f;
			default:
				return Screen.dpi;
			}
		}
	}
}
